package org.zjx.dao.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("race")
public class Race implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 种族表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *  种族类别 0 ：人， 1 ：仙 ，2：魔
     */
    private Integer category;

    /**
     * 种族名称
     */
    private String name;

    /**
     *  性别 0 ：男，1：女
     */
    private Integer sex;

    /**
     * 逻辑删除
     */
    @TableLogic
    private Boolean deleted;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
